extend

infix inline fun Int.extend(length: Int): IntRange(source)
infix inline fun Long.extend(length: Long): LongRange(source)
infix inline fun Long.extend(length: Int): LongRange(source)

Creates a range starting at this, spanning the provided length. The result is unchecked.


infix fun IntRange.extend(other: IntRange): IntRange(source)

Creates a union of this and the other range, covering all values between them.